Open
Conversation
added 6 commits
December 18, 2025 18:42
…Chatbox and ChatModeMenu components
| */ | ||
| const handleSendMessage = () => { | ||
| if (chatMessage.trim()) { | ||
| console.log('[Handle Text Message]:', chatMessage) |
| const [globalState, setGlobalState] = useState<GlobalState>() | ||
| const webSocketState = useWebSocket() | ||
| const [isSceneInitialized, setIsSceneInitialized] = useState(false) | ||
| const [chatMode, setChatMode] = useState<'text' | 'voice'>('voice') |
Member
There was a problem hiding this comment.
是否考虑在浏览器中存储上一次使用的聊天模式?语言选项(中文或英文)应该是缓存的,下次进入时仍然会使用之前的选项
| "send": "Send", | ||
| "autoMode": "Auto Mode", | ||
| "confirm": "Confirm", | ||
| "disconnect": "Disconnect", |
Author
There was a problem hiding this comment.
confirm 其实是 connect,这是livestream 用的
Member
There was a problem hiding this comment.
这里评论的原因是发现中英不一致,英文有confirm没有connect,中文有connect没有confirm,需要统一
LazyBusyYang
approved these changes
Jan 15, 2026
WYK96
reviewed
Jan 16, 2026
Comment on lines
+175
to
+181
| const recordAudioButton = this.recordAudioButton | ||
| recordAudioButton.verticalAlignment = | ||
| BABYLON_GUI.Control.VERTICAL_ALIGNMENT_BOTTOM | ||
| recordAudioButton.horizontalAlignment = | ||
| BABYLON_GUI.Control.HORIZONTAL_ALIGNMENT_CENTER | ||
| recordAudioButton.top = vh(-10) + 'px' | ||
| recordAudioButton.isVisible = true |
Member
There was a problem hiding this comment.
Suggested change
| const recordAudioButton = this.recordAudioButton | |
| recordAudioButton.verticalAlignment = | |
| BABYLON_GUI.Control.VERTICAL_ALIGNMENT_BOTTOM | |
| recordAudioButton.horizontalAlignment = | |
| BABYLON_GUI.Control.HORIZONTAL_ALIGNMENT_CENTER | |
| recordAudioButton.top = vh(-10) + 'px' | |
| recordAudioButton.isVisible = true | |
| this.recordAudioButton.verticalAlignment = | |
| BABYLON_GUI.Control.VERTICAL_ALIGNMENT_BOTTOM | |
| this.recordAudioButton.horizontalAlignment = | |
| BABYLON_GUI.Control.HORIZONTAL_ALIGNMENT_CENTER | |
| this.recordAudioButton.top = vh(-10) + 'px' | |
| this.recordAudioButton.isVisible = true |
Member
| "voiceChat": "语音聊天", | ||
| "inputMessagePlaceholder": "输入消息...", | ||
| "send": "发送", | ||
| "autoMode": "自动模式", |
Member
There was a problem hiding this comment.
Suggested change
| "autoMode": "自动模式", |
此处没有被实际使用到
| "voiceChat": "Voice Chat", | ||
| "inputMessagePlaceholder": "Enter message...", | ||
| "send": "Send", | ||
| "autoMode": "Auto Mode", |
Member
There was a problem hiding this comment.
Suggested change
| "autoMode": "Auto Mode", |
此处没有被实际使用到
| # next.js | ||
| /.next/ | ||
| /out/ | ||
| package-lock.json |
Member
There was a problem hiding this comment.
Suggested change
| package-lock.json |
目前使用pnpm进行包管理,不会再出现npm build时生成的package-lock.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.